﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.CustomerPolicyRecord>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2 class="ico_mug">Policy</h2>

    <table>
        <tr>
            <th></th>
            <th>
                policyNumber
            </th>
            <th>
                policydate
            </th>
            <th>
                policyDuration
            </th>
            <th>
                policyDescribe
            </th>
            <th>
                CompanyID
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.policyNumber }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.policyNumber })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.policyNumber })%>
            </td>
            <td>
                <%: item.policyNumber %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.policydate) %>
            </td>
            <td>
                <%: item.policyDuration %>
            </td>
            <td>
                <%: item.policyDescribe %>
            </td>
            <td>
                <%: item.CompanyID %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

